﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PannelCreate = WordTemplate2.Pannel;


namespace WordTemplate2.Pannel
{
    public partial class Pannel_1_Main : Form
    {
        private int radio_id = 0;

        public Pannel_1_Main()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            switch (radio_id)
            {
                case 0:
                    {
                        PannelCreate.Pannel_1 createwin = new PannelCreate.Pannel_1();
                        createwin.is_change_cover = false;
                        createwin.document_type = 0;
                        createwin.Visible = true;
                    }
                    break;
                case 1:
                    {
                        PannelCreate.Pannel_1 createwin = new PannelCreate.Pannel_1();
                        createwin.is_change_cover = false;
                        createwin.document_type = 1;
                        createwin.Visible = true;
                    }
                    break;
                case 2:
                    {

                    }
                    break;
                case 3:
                    {

                    }
                    break;
                default:
                    break;
            }
            this.Visible = false;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            this.Close();
        }

        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            radio_id = 0;
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            radio_id = 1;
        }

        private void radioButton3_CheckedChanged(object sender, EventArgs e)
        {
            radio_id = 2;
        }

        private void radioButton4_CheckedChanged(object sender, EventArgs e)
        {
            radio_id = 3;
        }

    }
}
